/**
 *
 * 让dom字符串能识别.语法
 * @export
 * @param {*} dataObj
 * @param {*} keyName
 */
export default function lookup (dataObj, keyName) {
    var temp = dataObj
    // 需要将{{.}}这种情况排除
    if (keyName.indexOf('.') > 0 && keyName != '.') {
        let names = keyName.split('.')
        for (let i = 0; i < names.length; i++) {
            const name = names[i];
            temp = temp[name]
        }
        return temp
    }
    return dataObj[keyName]
}